package com.guang.springbootrequestversion.annotate;

import org.springframework.web.bind.annotation.Mapping;

import java.lang.annotation.*;


@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Mapping
public @interface ApiVersion {

    /**
     * 定义版本号
     * @return
     */
    int value() default 1;
}
